<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateMatriculaacademicaEJBTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateMatriculaacademicaEJBLabel_MAcodigo}" for="MAcodigo" />
                    <h:inputText id="MAcodigo" value="#{matriculaacademicaEJBController.selected.MAcodigo}" title="#{bundle.CreateMatriculaacademicaEJBTitle_MAcodigo}" required="true" requiredMessage="#{bundle.CreateMatriculaacademicaEJBRequiredMessage_MAcodigo}"/>
                    <h:outputLabel value="#{bundle.CreateMatriculaacademicaEJBLabel_MAfecha}" for="MAfecha" />
                    <h:inputText id="MAfecha" value="#{matriculaacademicaEJBController.selected.MAfecha}" title="#{bundle.CreateMatriculaacademicaEJBTitle_MAfecha}" />
                    <h:outputLabel value="#{bundle.CreateMatriculaacademicaEJBLabel_MAcreditosHabilitados}" for="MAcreditosHabilitados" />
                    <h:inputText id="MAcreditosHabilitados" value="#{matriculaacademicaEJBController.selected.MAcreditosHabilitados}" title="#{bundle.CreateMatriculaacademicaEJBTitle_MAcreditosHabilitados}" required="true" requiredMessage="#{bundle.CreateMatriculaacademicaEJBRequiredMessage_MAcreditosHabilitados}"/>
                    <h:outputLabel value="#{bundle.CreateMatriculaacademicaEJBLabel_MAcreditosusados}" for="MAcreditosusados" />
                    <h:inputText id="MAcreditosusados" value="#{matriculaacademicaEJBController.selected.MAcreditosusados}" title="#{bundle.CreateMatriculaacademicaEJBTitle_MAcreditosusados}" required="true" requiredMessage="#{bundle.CreateMatriculaacademicaEJBRequiredMessage_MAcreditosusados}"/>
                    <h:outputLabel value="#{bundle.CreateMatriculaacademicaEJBLabel_MAmatriculado}" for="MAmatriculado" />
                    <h:inputText id="MAmatriculado" value="#{matriculaacademicaEJBController.selected.MAmatriculado}" title="#{bundle.CreateMatriculaacademicaEJBTitle_MAmatriculado}" required="true" requiredMessage="#{bundle.CreateMatriculaacademicaEJBRequiredMessage_MAmatriculado}"/>
                    <h:outputLabel value="#{bundle.CreateMatriculaacademicaEJBLabel_jefedeProgramaJCodigo}" for="jefedeProgramaJCodigo" />
                    <h:selectOneMenu id="jefedeProgramaJCodigo" value="#{matriculaacademicaEJBController.selected.jefedeProgramaJCodigo}" title="#{bundle.CreateMatriculaacademicaEJBTitle_jefedeProgramaJCodigo}" >
                        <f:selectItems value="#{jefeDeProgramaEJBController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{matriculaacademicaEJBController.create}" value="#{bundle.CreateMatriculaacademicaEJBSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{matriculaacademicaEJBController.prepareList}" value="#{bundle.CreateMatriculaacademicaEJBShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateMatriculaacademicaEJBIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
